package com.woniuxy.classdeans.service.impl;

import com.woniuxy.classdeans.mapper.GradeInfoMapper;
import com.woniuxy.classdeans.service.GradeInfoService;
import com.woniuxy.commons.entity.wyh.GradeInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangyanhui
 * @date 2020/7/21
 */
@Service
public class GradeInfoServiceImpl implements GradeInfoService {

    @Autowired
    private GradeInfoMapper gradeInfoMapper;
    @Override
    public List<GradeInfo> getAll(String year) {
        return gradeInfoMapper.getAll(year);
    }

    //根据年级主任id获取年级详细信息
    @Override
    public GradeInfo getByGdid(int gdId) {

        return gradeInfoMapper.getByGdid(gdId);
    }

    @Override
    public List<GradeInfo> getBySheetStudentNo(GradeInfo gradeInfo) {
        return gradeInfoMapper.getBySheetStudentNo(gradeInfo);
    }
}
